﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LuKou.Shopspace.Domains;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace LuKou.Web.ViewModel
{
    public class GoodsInfo
    {
        [Required(ErrorMessage = "不能为空")]
        [DisplayName("会员等级限制：")]
        public long AgentsGradeID { get; set; }

        [DisplayName("库存：")]
        public string Amount { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("类别：")]
        public long CategoryID { get; set; }

        [DisplayName("描述：")]
        public string Description { get; set; }

        public long ID { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("是否推荐：")]
        public bool IsRecommend { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("开卖时间：")]
        public long OnsaleTime { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("价格：")]
        public decimal Price { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("商铺编号：")]
        public long ShopID { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("标签：")]
        public string Tag { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [DisplayName("产品名称：")]
        public string Title { get; set; }
        //获取或设置 商品属性列表 是明细属性
        public List<GoodsAttrib> Attribs { get; set; }
        //获取或设置 商品填写的属性列表 是明细属性
        public List<GoodsDefAttrib> DefAttribs { get; set; }
    }
}
